Fix cabal run's handling of -- under empty target#11786
Fix cabal run's handling of -- under empty target#11786mergify[bot] merged 1 commit intohaskell:masterfrom
cabal run's handling of -- under empty target#11786Conversation
204ff13 to
5b40dfa
Compare
5b40dfa to
2c72cfb
Compare
e91bd54 to
02de5ac
Compare
8190b02 to
3703431
Compare
|
i removed the commit touching up the Makefile doctest setup since this issue has been attended to elsewhere |
6a5f949 to
cb107bb
Compare
|
Apparently some of the new tests were incorrect @philderbeast |
The review comment substitution didn't work. It didn't delete lines 3 .. 16 (in what I'm seeing now with cb107bb) that I'd included in the selection for replacement. I think you may also need a type annotation for the opts: + opts1, opts2, opts3 :: [String]
opts1 = ["+RTS"]
opts2 = ["+RTS", "--"]
opts3 = ["--", "+RTS"]You'll also need to run the test with |
|
Thanks, will fix. Also: those opts make tests harder to read imo, so I plan to inline them. |
cb107bb to
2a04e8d
Compare
Before, the number of targets were considered to be 1 always and worked mostly by accident for the empty target when no exe args were supplied. Fixes haskell#10487 Agent-Logs-Url: https://github.com/ulysses4ever/cabal/sessions/b504e919-a7ba-422e-90d2-59528a8e5014 Co-authored-by: ulysses4ever <6832600+ulysses4ever@users.noreply.github.com> Co-authored-by: Phil de Joux <philderbeast@gmail.com> Co-authored-by: Phil de Joux <philderbeast@gmail.com>
2a04e8d to
e775ba8
Compare
Merge Queue Status
This pull request spent 1 hour 52 minutes 2 seconds in the queue, including 1 hour 41 minutes 28 seconds running CI. Required conditions to merge
|
fix #10487, created with the help from AI (GitHub Copilot).
Template Α: This PR modifies behaviour or interface
Include the following checklist in your PR:
significance: significantin the changelog file.